﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using FastReport;

namespace SmallERP.PrintManage
{
    public partial class FrmPrintBarcode : Form
    {
        public int BarCode { get; set; }
            

        public FrmPrintBarcode()
        {
            InitializeComponent();
        }

        private void FrmPrintBarcode_Load(object sender, EventArgs e)
        {
            lbPaperWasteRecordId.Text = BarCode.ToString();
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            Report rp = new Report();
            rp.Load(Application.StartupPath + "\\Reports\\相纸条码.frx");
            rp.PrintSettings.ShowDialog = true;

            rp.SetParameterValue("pId", "*" + BarCode + "*");
            rp.Print();
        }
    }
}
